import request from '@/utils/request'

// 查询审核列表
export function listCheckList(query) {
  return request({
    url: '/project/checkList/list',
    method: 'get',
    params: query
  })
}

// 查询审核详细
export function getCheckList(id) {
  return request({
    url: '/project/checkList/' + id,
    method: 'get'
  })
}

// 新增审核
export function addCheckList(data) {
  return request({
    url: '/project/checkList',
    method: 'post',
    data: data
  })
}

// 修改审核
export function updateCheckList(data) {
  return request({
    url: '/project/checkList',
    method: 'put',
    data: data
  })
}

// 删除审核
export function delCheckList(id) {
  return request({
    url: '/project/checkList/' + id,
    method: 'delete'
  })
}

//具体审核操作
export function doCheck(data) {
  return request({
    url: '/project/checkList/doCheck',
    method: 'put',
    data: data
  })
}

export function addCheckProject(data) {
  return request({
    url: '/project/checkList/addCheckProject',
    method: 'put',
    data: data
  })
}

export function addCheckAwards(data) {
  return request({
    url: '/project/checkList/addCheckAwards',
    method: 'put',
    data: data
  })
}


//认领需求送审
export function addClaimNeedCheck(data) {
  return request({
    url: '/project/checkList/addClaimNeedCheck',
    method: 'put',
    data: data
  })
}

// 查询审核详细
export function seeCheck(id) {
  return request({
    url: '/project/checkList/seeCheck/' + id,
    method: 'get'
  })
}

// 查询认领审核详细
export function seeClaimCheck(id) {
  return request({
    url: '/project/checkList/seeClaimCheck/' + id,
    method: 'get'
  })
}



// 查询审核详细
export function seeAwardsCheck(id) {
  return request({
    url: '/project/checkList/seeAwardsCheck/' + id,
    method: 'get'
  })
}




// 新增需求
export function addJoinForm(data) {
  return request({
    url: '/project/checkList/addJoinForm',
    method: 'put',
    data: data
  })
}

